/******************************************************************************************
 * Import
 ******************************************************************************************/

// module
import Taro, { Component } from '@tarojs/taro'

// project
import { CPage, CContent, CHeader, CFooter, CFloat, CAround, CBetween, CCenter, CRow, CWrap, CLine, CHand, CItemX, CItemY, CText, CLabel, CSvg, CImage, CButton, CColumn } from '../../../../library/comp';
import { Base64, Gen, Time, Zip, Session, Storage, Http } from '../../../../library/func';
import Icon from '../../../../project/style/icon';

// images
/******************************************************************************************
 * Export Class
 ******************************************************************************************/
export default class Gift extends Component {

	/*------------------------------------------------------------------------------------
	 * 初始化
	 *-----------------------------------------------------------------------------------*/
	constructor(props) {
		super(props);

		/**
		 * state
		 */
		this.state = {
			invite: {
				set_img: '20181018/1539869551232t1pl.jpg',
				code: '0312ABCD1234'
			}


		}
	}

	/*------------------------------------------------------------------------------------
	 * 生命周期
	 *-----------------------------------------------------------------------------------*/
	// didMount
	componentDidMount() {

	}
	
	/*------------------------------------------------------------------------------------
	 * 事件处理
	 *-----------------------------------------------------------------------------------*/
	// onClick
	onClick = (e)=> {
		
	}
    
    // onRedirect
    onRedirect = (url, e)=> {
        wx.redirectTo({
            url: url
        })
    }

    // onNavigate
    onNavigate = (url, e)=> {

    }

	/*------------------------------------------------------------------------------------
	 * 自定义方法
	 *-----------------------------------------------------------------------------------*/
	config = {
        navigationBarTitleText: '我的店铺',
        navigationBarBackgroundColor: '#fff',
    }

	/*------------------------------------------------------------------------------------
	 * 渲染
	 *-----------------------------------------------------------------------------------*/

	render () {

		return (
			<CPage>
				<CContent>

					{/* 推广店铺bnaner */}
					<Image style='width:750rpx; height:340rpx; display:block' src='http://image.mod.hesq.com.cn/rushbuy/assets/20181113/store.jpg' />

					{/* 个人店铺 */}
					<Image style='width:750rpx; height:200rpx; display:block' src='http://image.mod.hesq.com.cn/rushbuy/assets/20181113/self.jpg' />

					{/* 店铺说明 */}
					<Image style='width:750rpx; height:1200rpx; display:block' src='http://image.mod.hesq.com.cn/rushbuy/assets/20181113/info.jpg' />

					{/* 店铺分享按 */}
					<CFooter bg='#fff' bt='2 solid #ddd' h='120' lh='120' x='center'>
						<Navigator url="/screen/vip/vip/share/invite" hover-class='none' style='background-color:#f25a53;width:86%;height:90rpx;margin-top:15rpx;border-radius:8rpx;line-height:90rpx;justify-content:center;display:flex;'>
							<CHand color='#fff' size='32' >店铺分享</CHand>
						</Navigator>
					</CFooter>

				</CContent>
			</CPage>
		)
	}
}


